import pandas as pd
res = []

A = pd.read_csv('res/res12_1.csv', header=0, index_col=0)
# cols = ['CCF_sales_11', 'CCF_sales_13_0.03', 'CCF_sales_13_0.05']
cols = ['res12_2']
for a in cols:
    A += pd.read_csv('res/{name}.csv'.format(name=a), header=0, index_col=0)

C = A/(len(cols)+1)
C.round().astype(int).to_csv('res/res12_en2.csv', header=True, index=True)